package com.jspgou.core.dao;

import java.util.Set;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.core.entity.Admin;

public interface AdminDao{
    public Admin getByUserId(Long userId, Long webId);

    public Admin findById(Long id);

    public Admin save(Admin bean);

    public Admin updateByUpdater(Updater<Admin> updater);

    public Admin deleteById(Long id);

    //*添加方法，根据adminName获取admin对象
	public Admin getByName(String name);

}
